/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_service_info")
//@NamedQueries({@NamedQuery(name = "TServiceInfo.findAll", query = "SELECT t FROM TServiceInfo t"), @NamedQuery(name = "TServiceInfo.findByServiceid", query = "SELECT t FROM TServiceInfo t WHERE t.serviceid = :serviceid"), @NamedQuery(name = "TServiceInfo.findByServicename", query = "SELECT t FROM TServiceInfo t WHERE t.servicename = :servicename"), @NamedQuery(name = "TServiceInfo.findByServiceCode", query = "SELECT t FROM TServiceInfo t WHERE t.serviceCode = :serviceCode"), @NamedQuery(name = "TServiceInfo.findByPrice", query = "SELECT t FROM TServiceInfo t WHERE t.price = :price"), @NamedQuery(name = "TServiceInfo.findByPriceType", query = "SELECT t FROM TServiceInfo t WHERE t.priceType = :priceType"), @NamedQuery(name = "TServiceInfo.findByServicetype", query = "SELECT t FROM TServiceInfo t WHERE t.servicetype = :servicetype"), @NamedQuery(name = "TServiceInfo.findByAccessNo", query = "SELECT t FROM TServiceInfo t WHERE t.accessNo = :accessNo"), @NamedQuery(name = "TServiceInfo.findByPortType", query = "SELECT t FROM TServiceInfo t WHERE t.portType = :portType"), @NamedQuery(name = "TServiceInfo.findByContent", query = "SELECT t FROM TServiceInfo t WHERE t.content = :content"), @NamedQuery(name = "TServiceInfo.findByContentType", query = "SELECT t FROM TServiceInfo t WHERE t.contentType = :contentType"), @NamedQuery(name = "TServiceInfo.findByProcessClass", query = "SELECT t FROM TServiceInfo t WHERE t.processClass = :processClass"), @NamedQuery(name = "TServiceInfo.findByOrderSuccessMsg", query = "SELECT t FROM TServiceInfo t WHERE t.orderSuccessMsg = :orderSuccessMsg"), @NamedQuery(name = "TServiceInfo.findByStarttime", query = "SELECT t FROM TServiceInfo t WHERE t.starttime = :starttime")})
public class TServiceInfo implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "serviceid")
    private Long serviceid;
    @Column(name = "servicename")
    private String servicename;
    @Column(name = "service_code")
    private String serviceCode;
    @Column(name = "price")
    private BigInteger price;
    @Column(name = "price_type")
    private String priceType;
    @Column(name = "servicetype")
    private String servicetype;
    @Column(name = "access_no")
    private String accessNo;
    @Column(name = "port_type")
    private String portType;
    @Column(name = "content")
    private String content;
    @Column(name = "content_type")
    private String contentType;
    @Column(name = "processClass")
    private String processClass;
    @Column(name = "carrier")
    private String carrier;
    @Column(name = "spnumber")
    private String spnumber;
    @Column(name = "order_success_msg")
    private String orderSuccessMsg;
    @Column(name = "ctrmand_cmd")
    private String ctrmand_cmd;
    @Column(name = "ctrmand_no")
    private String ctrmand_no;
    @Basic(optional = false)
    @Column(name = "starttime")
    @Temporal(TemporalType.TIMESTAMP)
    private Date starttime;

    public TServiceInfo() {
    }

    public TServiceInfo(Long serviceid) {
        this.serviceid = serviceid;
    }

    public TServiceInfo(Long serviceid, Date starttime) {
        this.serviceid = serviceid;
        this.starttime = starttime;
    }

    public Long getServiceid() {
        return serviceid;
    }

    public void setServiceid(Long serviceid) {
        this.serviceid = serviceid;
    }

    public String getServicename() {
        return servicename;
    }

    public void setServicename(String servicename) {
        this.servicename = servicename;
    }

    public String getServiceCode() {
        return serviceCode;
    }

    public void setServiceCode(String serviceCode) {
        this.serviceCode = serviceCode;
    }

    public BigInteger getPrice() {
        return price;
    }

    public void setPrice(BigInteger price) {
        this.price = price;
    }

    public String getPriceType() {
        return priceType;
    }

    public void setPriceType(String priceType) {
        this.priceType = priceType;
    }

    public String getServicetype() {
        return servicetype;
    }

    public void setServicetype(String servicetype) {
        this.servicetype = servicetype;
    }

    public String getAccessNo() {
        return accessNo;
    }

    public void setAccessNo(String accessNo) {
        this.accessNo = accessNo;
    }

    public String getPortType() {
        return portType;
    }

    public void setPortType(String portType) {
        this.portType = portType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public String getProcessClass() {
        return processClass;
    }

    public void setProcessClass(String processClass) {
        this.processClass = processClass;
    }

    public String getOrderSuccessMsg() {
        return orderSuccessMsg;
    }

    public void setOrderSuccessMsg(String orderSuccessMsg) {
        this.orderSuccessMsg = orderSuccessMsg;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (serviceid != null ? serviceid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TServiceInfo)) {
            return false;
        }
        TServiceInfo other = (TServiceInfo) object;
        if ((this.serviceid == null && other.serviceid != null) || (this.serviceid != null && !this.serviceid.equals(other.serviceid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TServiceInfo[serviceid=" + serviceid + "]";
    }

	/**
	 * ctrmand_cmd
	 *
	 * @return  the ctrmand_cmd
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getCtrmand_cmd() {
		return ctrmand_cmd;
	}

	/**
	 * @param ctrmand_cmd the ctrmand_cmd to set
	 */
	public void setCtrmand_cmd(String ctrmand_cmd) {
		this.ctrmand_cmd = ctrmand_cmd;
	}

	/**
	 * ctrmand_no
	 *
	 * @return  the ctrmand_no
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getCtrmand_no() {
		return ctrmand_no;
	}

	/**
	 * @param ctrmand_no the ctrmand_no to set
	 */
	public void setCtrmand_no(String ctrmand_no) {
		this.ctrmand_no = ctrmand_no;
	}

	/**
	 * carrier
	 *
	 * @return  the carrier
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getCarrier() {
		return carrier;
	}

	/**
	 * @param carrier the carrier to set
	 */
	public void setCarrier(String carrier) {
		this.carrier = carrier;
	}

	/**
	 * spnumber
	 *
	 * @return  the spnumber
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getSpnumber() {
		return spnumber;
	}

	/**
	 * @param spnumber the spnumber to set
	 */
	public void setSpnumber(String spnumber) {
		this.spnumber = spnumber;
	}

}
